<template>
	<view>
		<van-cell title="我的名字"   :value="list[0].username" />
		<van-cell title="我的手机号码"   :value="list[0].phone" />
		<van-cell title="QQ"   :value="list[0].qq" />
		<van-cell title="创建账号时间"   :value="list[0].createdAt" />
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
				
			}
		},
		onLoad() {
			this.data()
		}
		,
		methods: {
			data(){
				const us=uni.getStorageSync("username")
				let url=`/1.1/classes/people?where={"username":"${us}"}`
					this.$get(url).then(res=>{
						uni.stopPullDownRefresh()
						// console.log(res)
						let {results}=res
						if(results.length){
							this.list=this.list.concat(res.results)
								console.log(this.list[0])
						}
					
					})
					
					
			}
		}
	}
</script>

<style>

</style>
